GtkEntryPrivate *priv = entry->priv;
EntryIconInfo *icon_info;
GtkAllocation content_allocation;
- GtkAllocation widget_allocation;
-
- gtk_widget_get_allocation (GTK_WIDGET (entry), &widget_allocation);
icon_info = priv->icons[GTK_ENTRY_ICON_PRIMARY];
if (icon_info)
gtk_css_gadget_get_border_allocation (icon_info->gadget, &primary, NULL);
gdk_window_move_resize (icon_info->window,
- primary.x - widget_allocation.x, primary.y - widget_allocation.y,
+ primary.x, primary.y,
primary.width, primary.height);
}
gtk_css_gadget_get_border_allocation (icon_info->gadget, &secondary, NULL);
gdk_window_move_resize (icon_info->window,
- secondary.x - widget_allocation.x, secondary.y - widget_allocation.y,
+ secondary.x, secondary.y,
secondary.width, secondary.height);
}